StandardInputStream Class

Used for reading text input in a ConsoleApplication.

Events

None

Properties

None

Methods

Read

ReadLine


More information available in parent classes: Object


Notes

Since there is only one StandardInputStream for the system, you do not need to create a StandardInputStream object to use; you just use StdIn.

The StandardInputStream class implements the "Readable" class interface. If you implement this interface, you must provide a Read method with the parameters as shown above.

StandardInputStream incorporates a conversion operator so that you can use StdIn as a TCPSocket. This is useful only for services that are started for you by xinetd on Mac OS X or Linux. Here is an example of how to use this:

Dim Incoming as TCPSocket = Stdin

See Also

ConsoleApplication, StandardOutputStream classes; Input, Print, StdErr, StdIn, StdOut methods; TargetHasGUI constant.